cmake_minimum_required(VERSION 3.10)

# 设置项目名称
project(MyCFunction C)

# 设置C标准
set(CMAKE_C_STANDARD 11)
set(CMAKE_C_STANDARD_REQUIRED ON)

# 添加可执行文件
add_executable(crc_test
    main.c
    CRC/crc16.c
    CRC/crc8.c
)

# 添加头文件搜索路径
target_include_directories(crc_test PRIVATE
    ${CMAKE_SOURCE_DIR}
    ${CMAKE_SOURCE_DIR}/CRC
)